package cn.drew.org.mapper;

import cn.drew.org.domain.Department;
import cn.drew.org.query.DepartmentQuery;

import java.util.List;


public interface DepartmentMapper {
    //添加
    void add(Department department);
    //修改
    void update(Department department);
    //删除
    void delete(Long id);
    //查找一个
    Department findById(Long id);
    //查找所有
    List<Department> findAll();
    //分页条数
    Integer queryByCount(DepartmentQuery departmentQuery);
    //分页查找数据
    List<Department> queryByPage(DepartmentQuery departmentQuery);

    void patchDelete(List<Long> ids);


}
